package com.lkm.market2_0.m.steelyardserver.event;

import android.support.annotation.Nullable;

import com.google.gson.annotations.SerializedName;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;
import com.lkm.market2_0.m.steelyarddata.OrderEntity;

import java.util.List;



public class OnSubtotalEvent implements LinkBusEventFlag {


    @SerializedName("goodEntitie")
    private final @Nullable
    OrderEntity.GoodEntity goodEntitie;

    private final String steelyardMac;

    

    private boolean isHandleSale;

    

    private boolean isSyncForDevice;

    public OnSubtotalEvent(String steelyardMac, @Nullable OrderEntity.GoodEntity goodEntitie) {
        this.goodEntitie = goodEntitie;
        this.steelyardMac = steelyardMac;
    }

    public boolean isSyncForDevice() {
        return isSyncForDevice;
    }

    public void setSyncForDevice(boolean syncForDevice) {
        isSyncForDevice = syncForDevice;
    }

    public String getSteelyardMac() {
        return steelyardMac;
    }

    public @Nullable
    OrderEntity.GoodEntity getGoodEntitie() {
        return goodEntitie;
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {
        return ThreadEnforcer.ANY;
    }

    public boolean isHandleSale() {
        return isHandleSale;
    }

    public void setHandleSale(boolean handleSale) {
        isHandleSale = handleSale;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
